<?php echo $this->Form->create('Rating',array('url'=>'/a/'.$article_slug))?>
		<?php echo $this->Form->hidden('Article.Article.0',array('value'=>$article_id))?>
		<div class="rating-form-opinion">
			<h3><?php echo __d('articles','Add comment')?></h3>
			
			<h4 class="required"><?php echo __d('articles','Title of your review',true)?><after></h4>
			<div class="form_text">
				<?php echo $this->Form->input('Comment.title',array('size'=>"40", 'class'=>"form_question",'div'=>false,'label'=>false))?>			
	        </div>
	        <h4><?php echo __d('articles','Your review',true)?></h4>
	        <div class="form_textarea">        	
	        	<textarea name="data[Comment][content]" class="form_question_content"></textarea>
	        </div>                            
			<div class='clear'>&nbsp;</div>	
			<button class="button" type="submit"> </button>
		</div>

		<div class="rating-form-rating">
		<h3><?php echo __d('articles','Add rating')?></h3>
		       
		<h4><?php echo __d('articles','Click to select a rating',true)?></h4>	                                
		<ul class="rating-list">
		<?php foreach ($rating as $key => $r) {?>
			<li>		
				
					<input name="data[RatingValue][<?php echo $r['Rating']['id']?>]" type="radio" class="star<?php echo $r['Rating']['id']?>" value="1" title="<?php echo __d('articles','Terrible',true)?>"/>
					<input name="data[RatingValue][<?php echo $r['Rating']['id']?>]" type="radio" class="star<?php echo $r['Rating']['id']?>" value="2" title="<?php echo __d('articles','Poor',true)?>"/>
					<input name="data[RatingValue][<?php echo $r['Rating']['id']?>]" type="radio" class="star<?php echo $r['Rating']['id']?>" value="3" title="<?php echo __d('articles','Average',true)?>"/>
					<input name="data[RatingValue][<?php echo $r['Rating']['id']?>]" type="radio" class="star<?php echo $r['Rating']['id']?>" value="4" title="<?php echo __d('articles','Very Good',true)?>"/>
					<input name="data[RatingValue][<?php echo $r['Rating']['id']?>]" type="radio" class="star<?php echo $r['Rating']['id']?>" value="5" title="<?php echo __d('articles','Excellent',true)?>"/>
					&nbsp;&nbsp;<?php echo $r['Rating']['name']?>
					<script>
					$(function(){ // wait for document to load
						$('.star<?php echo $r['Rating']['id']?>').rating(); 
	 
					});
					</script>
					
				
			</li>
			
		<?php }?>
		</ul>
		<?php 
//  		 	echo $this->Recaptcha->show(array('theme' => 'white','lang' => 'en',));	
//  			echo $this->Recaptcha->error();
		?>

		<div class="test"></div>
		<div class='clear'>&nbsp;</div>	
		<button class="button" type="submit"> </button>
	</div>
	
<?php echo $this->Form->end()?>

<div class='clear'>&nbsp;</div>	


